<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
	String ip = request.getHeader("x-forwarded-for");
	if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
		ip = request.getHeader("Proxy-Client-IP");
	}
	if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
		ip = request.getHeader("WL-Proxy-Client-IP");
	}
	if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
		ip = request.getRemoteAddr();
	}
	if(ip.contains("192.168.127")){//四厂
		response.sendRedirect("screen/workshop/index_new_sc.html");
	}else if(ip.contains("192.168.52")){
		response.sendRedirect("screen/workshop/index_new.html");
	}else{
		response.sendRedirect("screen/workshop/index_new_sc.html");
	}

%>